/**
 * 
 */
package cw.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cw.entity.Competition;

/**
 * @author Administrator
 *
 */
public interface CompetitionService {
	
	public int deleteAll();

	public int deleteByPrimaryKey(Integer id);

    public int insert(Competition record);

    public int insertSelective(Competition record);

    public Competition selectByPrimaryKey(Integer id);

    public int updateByPrimaryKeySelective(Competition record);

    public int updateByPrimaryKey(Competition record);
    
    public List<Competition> queryCompetition(String teamId,String teamTid,String description,String id,Integer offset, Integer pageSize);

    Integer getTotal(String teamId,String teamTid,String description,String id);
    
    List<Competition> query();
    
    public void arrangeCompetition(List<Integer> list);
    
    public void arrangePkCompetition(List<Integer> list);
}
